package cn.cnnic.uploadkit.handler;

import java.util.HashMap;

import cn.cnnic.uploadkit.handler.impl.FileHandler;
import cn.cnnic.uploadkit.handler.impl.TextHandler;

public class FormHandlerFactory {
	private static final HashMap<String, FormHandler> HANDER_MAP = new HashMap<String, FormHandler>();

	static {
		HANDER_MAP.put("file", new FileHandler());
		HANDER_MAP.put("text", new TextHandler());
	}

	public static final FormHandler getHandler(String key) {
		return HANDER_MAP.get(key);
	}
}
